/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entityprojet;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author T.Ron
 */
@Entity
@Table(name = "SOCIETE")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Societe.findAll", query = "SELECT s FROM Societe s"),
    @NamedQuery(name = "Societe.findByIdSociete", query = "SELECT s FROM Societe s WHERE s.idSociete = :idSociete"),
    @NamedQuery(name = "Societe.findByRaisonsocial", query = "SELECT s FROM Societe s WHERE s.raisonsocial = :raisonsocial"),
    @NamedQuery(name = "Societe.findBySecteuractivite", query = "SELECT s FROM Societe s WHERE s.secteuractivite = :secteuractivite"),
    @NamedQuery(name = "Societe.findByLocalisation", query = "SELECT s FROM Societe s WHERE s.localisation = :localisation"),
    @NamedQuery(name = "Societe.findByAdresse", query = "SELECT s FROM Societe s WHERE s.adresse = :adresse"),
    @NamedQuery(name = "Societe.findByCodepostal", query = "SELECT s FROM Societe s WHERE s.codepostal = :codepostal"),
    @NamedQuery(name = "Societe.findByVille", query = "SELECT s FROM Societe s WHERE s.ville = :ville"),
    @NamedQuery(name = "Societe.findByRegion", query = "SELECT s FROM Societe s WHERE s.region = :region"),
    @NamedQuery(name = "Societe.findByPays", query = "SELECT s FROM Societe s WHERE s.pays = :pays"),
    @NamedQuery(name = "Societe.findByRc", query = "SELECT s FROM Societe s WHERE s.rc = :rc"),
    @NamedQuery(name = "Societe.findByContrib", query = "SELECT s FROM Societe s WHERE s.contrib = :contrib"),
    @NamedQuery(name = "Societe.findByTelephone", query = "SELECT s FROM Societe s WHERE s.telephone = :telephone"),
    @NamedQuery(name = "Societe.findByFixe", query = "SELECT s FROM Societe s WHERE s.fixe = :fixe"),
    @NamedQuery(name = "Societe.findByEmail", query = "SELECT s FROM Societe s WHERE s.email = :email"),
    @NamedQuery(name = "Societe.findByWebsite", query = "SELECT s FROM Societe s WHERE s.website = :website")})
public class Societe implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "ID_SOCIETE")
    private Integer idSociete;
    @Column(name = "RAISONSOCIAL")
    private String raisonsocial;
    @Column(name = "SECTEURACTIVITE")
    private String secteuractivite;
    @Column(name = "LOCALISATION")
    private String localisation;
    @Column(name = "ADRESSE")
    private String adresse;
    @Column(name = "CODEPOSTAL")
    private Integer codepostal;
    @Column(name = "VILLE")
    private String ville;
    @Column(name = "REGION")
    private String region;
    @Column(name = "PAYS")
    private String pays;
    @Column(name = "RC")
    private String rc;
    @Column(name = "CONTRIB")
    private String contrib;
    @Column(name = "TELEPHONE")
    private String telephone;
    @Column(name = "FIXE")
    private String fixe;
    @Column(name = "EMAIL")
    private String email;
    @Column(name = "WEBSITE")
    private String website;

    public Societe() {
    }

    public Societe(Integer idSociete) {
        this.idSociete = idSociete;
    }

    public Integer getIdSociete() {
        return idSociete;
    }

    public void setIdSociete(Integer idSociete) {
        this.idSociete = idSociete;
    }

    public String getRaisonsocial() {
        return raisonsocial;
    }

    public void setRaisonsocial(String raisonsocial) {
        this.raisonsocial = raisonsocial;
    }

    public String getSecteuractivite() {
        return secteuractivite;
    }

    public void setSecteuractivite(String secteuractivite) {
        this.secteuractivite = secteuractivite;
    }

    public String getLocalisation() {
        return localisation;
    }

    public void setLocalisation(String localisation) {
        this.localisation = localisation;
    }

    public String getAdresse() {
        return adresse;
    }

    public void setAdresse(String adresse) {
        this.adresse = adresse;
    }

    public Integer getCodepostal() {
        return codepostal;
    }

    public void setCodepostal(Integer codepostal) {
        this.codepostal = codepostal;
    }

    public String getVille() {
        return ville;
    }

    public void setVille(String ville) {
        this.ville = ville;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getPays() {
        return pays;
    }

    public void setPays(String pays) {
        this.pays = pays;
    }

    public String getRc() {
        return rc;
    }

    public void setRc(String rc) {
        this.rc = rc;
    }

    public String getContrib() {
        return contrib;
    }

    public void setContrib(String contrib) {
        this.contrib = contrib;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getFixe() {
        return fixe;
    }

    public void setFixe(String fixe) {
        this.fixe = fixe;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idSociete != null ? idSociete.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Societe)) {
            return false;
        }
        Societe other = (Societe) object;
        if ((this.idSociete == null && other.idSociete != null) || (this.idSociete != null && !this.idSociete.equals(other.idSociete))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entityprojet.Societe[ idSociete=" + idSociete + " ]";
    }
    
}
